diff options
author | Lorenz Diener <[email protected]> | 2018-06-05 22:10:31 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2018-06-05 22:10:31 +0200 |
commit | 18c6b3b90ff8bd607df18af86d092ac1205ffbf7 (patch) | |
tree | 203729696d2639d5bf221168ad6c76a150130ab0 /tests/cassettes/test_status_post[Content warning-public].yaml | |
parent | 36194fd60c8e5c6d30134134e32dd24981aee324 (diff) | |
download | mastodon.py-18c6b3b90ff8bd607df18af86d092ac1205ffbf7.tar.gz |
New casettes, small fixes
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-public].yaml')
-rw-r--r-- | tests/cassettes/test_status_post[Content warning-public].yaml | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-public].yaml b/tests/cassettes/test_status_post[Content warning-public].yaml index a9e03c5..29fe246 100644 --- a/tests/cassettes/test_status_post[Content warning-public].yaml +++ b/tests/cassettes/test_status_post[Content warning-public].yaml | |||
@@ -1,6 +1,6 @@ | |||
1 | interactions: | 1 | interactions: |
2 | - request: | 2 | - request: |
3 | body: spoiler_text=Content+warning&visibility=public&status=Toot%21 | 3 | body: visibility=public&spoiler_text=Content+warning&status=Toot%21 |
4 | headers: | 4 | headers: |
5 | Accept: ['*/*'] | 5 | Accept: ['*/*'] |
6 | Accept-Encoding: ['gzip, deflate'] | 6 | Accept-Encoding: ['gzip, deflate'] |
@@ -12,23 +12,26 @@ interactions: | |||
12 | method: POST | 12 | method: POST |
13 | uri: http://localhost:3000/api/v1/statuses | 13 | uri: http://localhost:3000/api/v1/statuses |
14 | response: | 14 | response: |
15 | body: {string: '{"id":"99984774522933034","created_at":"2018-05-06T22:43:03.947Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content | 15 | body: {string: '{"id":"100154010052169277","created_at":"2018-06-05T20:01:53.183Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content |
16 | warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99984774522933034","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99984774522933034","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py | 16 | warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/100154010052169277","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/100154010052169277","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py |
17 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John | 17 | test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John |
18 | Lennon","locked":true,"created_at":"2018-05-07T00:38:05.405Z","note":"\u003cp\u003eI | 18 | Lennon","locked":true,"bot":false,"created_at":"2018-06-05T21:58:43.069Z","note":"\u003cp\u003eI |
19 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpeg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpeg","followers_count":0,"following_count":1,"statuses_count":2},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} | 19 | walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpg","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpg","followers_count":0,"following_count":1,"statuses_count":22,"emojis":[],"fields":[{"name":"bread","value":"toasty."},{"name":"lasagna","value":"no!!!"}]},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'} |
20 | headers: | 20 | headers: |
21 | Cache-Control: ['max-age=0, private, must-revalidate'] | 21 | Cache-Control: ['max-age=0, private, must-revalidate'] |
22 | Content-Type: [application/json; charset=utf-8] | 22 | Content-Type: [application/json; charset=utf-8] |
23 | ETag: [W/"04c58441abfa3566ebb90a991f76aa52"] | 23 | ETag: [W/"bd5ced7bb9478e3e0b8b6250368efd02"] |
24 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
24 | Transfer-Encoding: [chunked] | 25 | Transfer-Encoding: [chunked] |
25 | Vary: ['Accept-Encoding, Origin'] | 26 | Vary: ['Accept-Encoding, Origin'] |
26 | X-Content-Type-Options: [nosniff] | 27 | X-Content-Type-Options: [nosniff] |
28 | X-Download-Options: [noopen] | ||
27 | X-Frame-Options: [SAMEORIGIN] | 29 | X-Frame-Options: [SAMEORIGIN] |
28 | X-Request-Id: [b9549964-93b9-4414-b7cd-f85165355618] | 30 | X-Permitted-Cross-Domain-Policies: [none] |
29 | X-Runtime: ['0.318732'] | 31 | X-Request-Id: [6ede2059-de70-4457-adaa-22f088defb4b] |
32 | X-Runtime: ['0.314782'] | ||
30 | X-XSS-Protection: [1; mode=block] | 33 | X-XSS-Protection: [1; mode=block] |
31 | content-length: ['1414'] | 34 | content-length: ['1519'] |
32 | status: {code: 200, message: OK} | 35 | status: {code: 200, message: OK} |
33 | - request: | 36 | - request: |
34 | body: null | 37 | body: null |
@@ -40,19 +43,22 @@ interactions: | |||
40 | Content-Length: ['0'] | 43 | Content-Length: ['0'] |
41 | User-Agent: [python-requests/2.9.1] | 44 | User-Agent: [python-requests/2.9.1] |
42 | method: DELETE | 45 | method: DELETE |
43 | uri: http://localhost:3000/api/v1/statuses/99984774522933034 | 46 | uri: http://localhost:3000/api/v1/statuses/100154010052169277 |
44 | response: | 47 | response: |
45 | body: {string: '{}'} | 48 | body: {string: '{}'} |
46 | headers: | 49 | headers: |
47 | Cache-Control: ['max-age=0, private, must-revalidate'] | 50 | Cache-Control: ['max-age=0, private, must-revalidate'] |
48 | Content-Type: [application/json; charset=utf-8] | 51 | Content-Type: [application/json; charset=utf-8] |
49 | ETag: [W/"3b6a2b031e1340d6fc01efac3e514faf"] | 52 | ETag: [W/"ee22df187d6edee971bf4403c830f317"] |
53 | Referrer-Policy: [strict-origin-when-cross-origin] | ||
50 | Transfer-Encoding: [chunked] | 54 | Transfer-Encoding: [chunked] |
51 | Vary: ['Accept-Encoding, Origin'] | 55 | Vary: ['Accept-Encoding, Origin'] |
52 | X-Content-Type-Options: [nosniff] | 56 | X-Content-Type-Options: [nosniff] |
57 | X-Download-Options: [noopen] | ||
53 | X-Frame-Options: [SAMEORIGIN] | 58 | X-Frame-Options: [SAMEORIGIN] |
54 | X-Request-Id: [8b16c4ef-8f76-4585-94a2-a58ddd9b27cd] | 59 | X-Permitted-Cross-Domain-Policies: [none] |
55 | X-Runtime: ['0.189260'] | 60 | X-Request-Id: [5efd2649-4ccd-4936-9c2c-8533fd4d2537] |
61 | X-Runtime: ['0.130592'] | ||
56 | X-XSS-Protection: [1; mode=block] | 62 | X-XSS-Protection: [1; mode=block] |
57 | content-length: ['2'] | 63 | content-length: ['2'] |
58 | status: {code: 200, message: OK} | 64 | status: {code: 200, message: OK} |